/*
	Copyright (C) 2009 Salil Bhagurkar
	
	This file is part of ViSE
	
	ViSE is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.
	
	ViSE is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU Lesser General Public License for more details.
	
	You should have received a copy of the GNU Lesser General Public License
	along with ViSE.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _CLASS_GRAPHICS_H_
#define _CLASS_GRAPHICS_H_


//To set a mode, a graphics device is called with 'offset' and 'count' as the mode coordinates. Simple.
/*If the graphics device (driver) can set the mode, then it sets it, otherwise it will or return an error.
The graphics class will perform writes to all devices and the device successful in setting it will do the drawing.
*/
/*We may later add functionality to select a preferred device*/

/*In the write performed to the device, the buffer pointer should be null, meaning a mode is to be set. If
the buffer pointer is not null, then that buffer is to be flushed to the device at the required offset
and count*/

/*The buffer for graphics is always a 32 bit buffer with rgb and a byte. This needs to be used by the graphics
driver to convert to any hardware independently*/

/*Currently only writing the whole buffer is supported*/


#endif
